Fermat's Principle: Finding The Minimum Time For Light To Travel